home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NOVA - For the NeXT Workstation
/
NOVA - For the NeXT Workstation.iso
/
SourceCode
/
OOP_Course
/
Examples
/
DragDemo_1.1
/
MouseView.h
< prev
next >
Wrap
Text File
|
1992-12-19
|
664b
|
25 lines
/*
* MouseView -- John Glover, adapted from MouseTracker by Randy Nelson
* An abstract class that manages a modal loop for tracking the mouse
*
* You may freely copy, distribute and reuse the code in this example.
* NeXT disclaims any warranty of any kind, expressed or implied, as to
* its fitness for any particular use.
*/
#import <appkit/appkit.h> //Standard for 3.0, inefficient for 2.1.
@interface MouseView:View
{
}
- setTrackingRect:sender;
- mouseEntered:(NXEvent *)e;
- mouseExited:(NXEvent *)e;
- mouseDownAction:(NXPoint *)currentLocation;
- mouseDraggedAction:(NXPoint *)currentLocation;
- mouseUpAction:(NXPoint *)currentLocation;
@end